package collection;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class TestProperties {
	public static void main(String[] args) throws FileNotFoundException, IOException {
		Properties properties = new Properties();
		properties.put("a", "abc");
		
		System.out.println(properties.get("a"));
		
		properties.load(new FileInputStream("config.properties"));
		System.out.println(properties.get("name"));
		
		properties.store(System.out, null);
	}
}
